/**
 * 
 */
	function def() {
		alert("ddfgg");
	}

	function onclick_login() {
		if (isEmail(Email) && Password != null) {
			alert("fff");
		} else {
			alert("defe");
		}
	}

	/**
	 * used for validating the email address
	 * @param str
	 * @returns
	 */
	function isEmail(str) {
		var reg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/;
		return reg.test(str);
	}
	
	function onchange_email() {
		var infor;
		if(isEmail(document.getElementById("email").value)){
			infor="<b style=\"color:GREEN\">Email valid</b>";
		}else{
			infor="<b style=\"color:RED\">Email invalid</b>";
		}
		//alert(infor);
		document.getElementById("infor_email").innerHTML=infor;
		//alert("success");
	}
	
	function onchange_psw(){
		var infor;
		//alert(document.getElementById("password").value);
		if(document.getElementById("password").value==""){
			infor="<b style=\"color:RED\">Please input the password</b>";
		}else{
			infor="";
		}
		//alert(infor);
		document.getElementById("infor_psw").innerHTML=infor;
		//alert("success");
	}